query_size = (320, 320)
query_image = query_image.resize(query_size)

# Add padding to make the circle slightly larger
padding = 10  # بۇ قىممەتنى كىچىكلىتىپ-چوڭايتىپ سىناپ باقسىڭىز بولىدۇ
mask = Image.new("L", query_size, 0)
draw = ImageDraw.Draw(mask)
draw.ellipse((padding, padding, query_size[0]-padding, query_size[1]-padding), fill=255)

query_cover = ImageOps.fit(query_image, mask.size, centering=(0.5, 0.5))
query_cover.putalpha(mask)
bg_imag.paste(query_image, (730, 1266), query_cover)
